#ifndef _JOYPAD_H
#define _JOYPAD_H

#include "type.h"

class CJoyPad
{
public:
  CJoyPad();

public:
  void          Reset();

  void          SetKeyState(int index, u8 key, u8 down);
  u8            ReadState(int index);
  void          WriteState(int index, u8 state);

private:
  u32           m_KeyState[2];
  u32           m_KeyIndex[2];
  u8            m_JoyPadReg[2];
};

#endif  // _JOYPAD_H
